package process_demo.tools;

import java.util.concurrent.TimeUnit;

/**
 * @author haomin
 * @date 2022/04/19 20:50
 **/
public class Main {
    // C:\Program Files\Java\jdk1.8.0_131\bin  -- jconsole 使用此监测工具
    public static void main(String[] args) throws InterruptedException {
        Thread.currentThread().setName("我是主线程");
        while (true) {
            TimeUnit.SECONDS.sleep(1);
            System.out.println("你好");
        }
    }
}